/*
 * Copyright (c) 2012 Sqpoll.
 * All rights reserved.
 */
package com.sqpoll.survey.model;

import java.io.Serializable;
import java.util.Date;

/**
 * This class is a model for the answer choice of question.
 * 
 * @author Younggue Bae
 */
@SuppressWarnings("serial")
public class AnswerChoice implements Serializable {

	private int surveyId;
	private int questionId;
	private int answerChoiceId;
	private int sequence;
	private String name;
	private String value;
	private String options;
	private String transitionRule;
	private String createUserId;
	private String updateUserId;
	private Date createDate;
	private Date updateDate;
	
	public int getSurveyId() {
		return surveyId;
	}
	public void setSurveyId(int surveyId) {
		this.surveyId = surveyId;
	}
	public int getQuestionId() {
		return questionId;
	}
	public void setQuestionId(int questionId) {
		this.questionId = questionId;
	}
	public int getAnswerChoiceId() {
		return answerChoiceId;
	}
	public void setAnswerChoiceId(int answerChoiceId) {
		this.answerChoiceId = answerChoiceId;
	}
	public int getSequence() {
		return sequence;
	}
	public void setSequence(int sequence) {
		this.sequence = sequence;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getOptions() {
		return options;
	}
	public void setOptions(String options) {
		this.options = options;
	}
	public String getTransitionRule() {
		return transitionRule;
	}
	public void setTransitionRule(String transitionRule) {
		this.transitionRule = transitionRule;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	
	@Override
	public String toString() {
		return "AnswerChoice [surveyId=" + surveyId + ", questionId=" + questionId + ", answerChoiceId=" + answerChoiceId
				+ ", sequence=" + sequence + ", name=" + name + ", value=" + value + ", options=" + options
				+ ", transitionRule=" + transitionRule + ", createUserId=" + createUserId + ", updateUserId=" + updateUserId
				+ ", createDate=" + createDate + ", updateDate=" + updateDate + "]";
	}
	
}
